﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
//using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using Adatkezelo.Classes;
namespace NEMProjectWebApp {
    public partial class Login : System.Web.UI.Page {
        Login_Kezeles login = new Login_Kezeles();
        protected void Page_Load(object sender, EventArgs e) {
            Session.Timeout = 10;
        }

        protected void LoginButton_Click(object sender, EventArgs e) {
            string Jogkor = login.Azonosit(Session, LoginUser);
            if (Jogkor.Length == 1) {
                if (Jogkor[0] != '0')
                    Response.Redirect("~/Default.aspx");
            } else Response.Write("<script>alert('" + Jogkor + "')</script>");
        }

        protected void Password_TextChanged(object sender, EventArgs e) {

        }
    }
}
